.issue(style="background:{{vm.backgroundColor}}")
	// Header
	//issue-header(issue-data="vm.data")

	// Comments
	div(ng-show="vm.showComments", ng-class="{issueComments: vm.showComments}", comments-height, num-new-comments="vm.numNewComments")
		.issueCommentsContainer(style="background:{{vm.backgroundColor}}")
			// Comments list
			md-list
				md-list-item.md-2-line(ng-repeat="comment in vm.data.comments")
					div.md-list-item-text
						div(layout="row" layout-align="space-between center")
							h3(ng-bind-html="comment.comment | linky:'_blank'") {{comment.comment}}
							.commentModify(layout="row" layout-align="center center", ng-if="vm.issueIsOpen")
								md-icon.md-accent.commentModifyButton(class="fa fa-pencil", ng-if="comment.canDelete", ng-click="vm.toggleEditComment($index)")
								md-icon.md-accent.commentModifyButton(class="fa fa-times-circle", ng-if="comment.canDelete", ng-click="vm.deleteComment($index)")
						.issueCommentInfo(layout="row" layout-align="space-between center")
							p {{comment.owner}}
							p(class="issueTimeStamp") {{comment.timeStamp}}

			// New comment input
			md-input-container.md-block(md-no-float="", ng-if="vm.issueIsOpen")
				label New comment
				textarea(ng-model="vm.comment")

			// Issue footer
			.issueCommentsFooter
				div(ng-if="vm.issueIsOpen",layout="row", layout-align="start center")
					// Save comment
					div(layout="row", layout-align="start center")
						md-button.md-raised.md-accent(ng-click="vm.saveComment()", ng-disabled="vm.saveCommentDisabled") Save
						md-progress-circular(md-diameter="20px", ng-if="vm.savingComment")

					// Assign role
					//md-menu(md-position-mode="target-right target", ng-if="vm.canModifyIssue")
						md-button.md-primary(ng-click="vm.openAssignedRolesMenu($mdOpenMenu, $event)") Assign
						md-menu-content(width="4")
							md-menu-item(ng-repeat="role in vm.roles")
								md-list-item.issueRole
									div(layout="row", layout-align="start center")
										.issueAssignColourMarker(style="background:{{role.color}}")
										| {{role.role}}
									md-checkbox.md-secondary(ng-model="role.assigned", aria-label="Issue Assign")

					// Close/Open issue
					md-button.md-primary.md-accent(ng-click="vm.toggleCloseIssue()", ng-if="vm.canModifyIssue") Resolve issue
				.issueOpenContainer(ng-if="!vm.issueIsOpen")
					md-button.md-primary.md-accent(ng-click="vm.toggleCloseIssue()", ng-if="vm.canModifyIssue") Open issue
